/**
 * 
 */
package de.cbf.cam.dsa.inventory.perspectives;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import de.cbf.cam.dsa.inventory.views.InventoryView;

/**
 * @author Nebelritter
 *
 */
public class InventoryPerspective implements IPerspectiveFactory {
	public static String ID ="de.cbf.cam.dsa.inventory.perspectives.InventoryPerspective";
	
	@Override
	public void createInitialLayout(IPageLayout layout) {
		String editorArea=layout.getEditorArea();
		layout.setEditorAreaVisible(false);		
		
		layout.addStandaloneView(InventoryView.ID,false, IPageLayout.LEFT,1f,editorArea);
				
			
		layout.getViewLayout(InventoryView.ID).setCloseable(false);
		layout.getViewLayout(InventoryView.ID).setMoveable(false);
	}

}
